package com.roads.system.service.impl;

import com.roads.system.domain.DictNation;
import com.roads.system.domain.DictProvince;
import com.roads.system.mapper.DictMapper;
import com.roads.system.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DictServiceImpl
 * @Description 字典Service实现类
 * @Author nhp
 * @Date 2022/4/24 0024 13:23
 * @Version 1.0.0
 **/
@Service
public class DictServiceImpl implements IDictService {

    @Autowired
    private DictMapper dictMapper;

    /**
     * 获取省集合
     *
     * @return 省集合
     */
    @Override
    public List<DictProvince> getProvinceList() {
        return dictMapper.getProvinceList();
    }

    /**
     * 获取民族集合
     *
     * @return 民族集合
     */
    @Override
    public List<DictNation> getNationList() {
        return dictMapper.getNationList();
    }


}
